# -- coding: utf-8 -- 
# Name: form
import wtforms
from flask_wtf import Form
form wtforms import StringField, PasswordField
from wtforms.validators import DataRequired,Length

class BaseLogin(Form):
    name = StringField('name',
        validators=[
            DataRequired(message="username can not NULL"),
            Length(6,16,message='length for 6 to 16')],
        render_kw={'placeholder':'please enter your username'})
    password=PasswordField('password',
        validators=[
            DataRequired(message='password not None'),
            Length(6, 16, message='length for 6 to 16')],
        render_kw={'placeholder': 'please enter your password'})










